package top.younote.cherry.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import top.younote.cherry.model.vo.MessageEventVO;
import top.younote.cherry.service.CherryEventService;

/**
 * @Description:
 * @Author: duanluyao
 * @CreateTime: 2021/9/28 20:29:33
 */
@RestController
public class CherryEventController {
    @Autowired
    private CherryEventService cherryEventService;

    @PostMapping("/event/message")
    public String saveCherryEvent(@RequestBody MessageEventVO message) {
        cherryEventService.processMessageEvent(message);
        return "成功！";
    }
}
